/****************************************************************************
 * mpdindicator.cpp
 *  Copyright © 2010, Vsevolod Velichko <torkvema@gmail.com>.
 *  Licence: GPLv3 or later
 *
 ****************************************************************************
 *                                                                          *
 *   This library is free software; you can redistribute it and/or modify   *
 *   it under the terms of the GNU General Public License as published by   *
 *   the Free Software Foundation; either version 3 of the License, or      *
 *   (at your option) any later version.                                    *
 *                                                                          *
 ****************************************************************************/

#include <qglobal.h>
#include <QDebug>
#include "vkaindicator.h"
#include <QCoreApplication>

VKAIndicator::VKAIndicator () :
	QObject(QCoreApplication::instance())
{
        qDebug() << "VKAudioIndicator created";
        indicateServer = QIndicate::Server::defaultInstance();
        indicateServer->setType("music.vkaudio");
        indicateServer->setDesktopFile("/usr/share/applications/vkaudio.desktop");
        indicateServer->show();
}

VKAIndicator::~VKAIndicator ()
{
        qDebug() << "~VKAudio has been called";
        indicateServer->hide();
}
